<script>
	import config from '@/api/config.js'
	
	export default {
		globalData: {
			config: config
		},
		onLaunch: function() {
			console.log('App Launch')
			console.log('API配置:', config)
			// 设置全局配置
			this.globalData.config = config
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style lang="scss">
	/* 注意要写在第一行，注意不能引入至uni.scss，同时给style标签加入lang="scss"属性 */
	@import "@/uni_modules/uview-plus/index.scss";
	
	/* 全局字体设置 */
	page,
	body,
	button,
	input,
	select,
	textarea {
		font-family: '华文细黑', 'STXihei', "Microsoft YaHei", "微软雅黑", STHeiTi, MingLiu;
	}
</style>
